package com.beidasoft.web.xxlJob;

import com.beidasoft.web.business.temp.TempQueryBussiness;
import com.beidasoft.web.service.caseCheck.TempManagerService;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class XxlJobHandler {


    @Autowired
    private TempQueryBussiness tempQueryBussiness;

    /**
     * 更新状态
     **/
    @XxlJob("UpdateStatus")
    public void updateStatus() throws Exception {
        String a ="dddd";
        String b = tempQueryBussiness.tempSearch(a);

        String jobParam = XxlJobHelper.getJobParam();
        log.info("任务执行" + jobParam);
        log.info("任务执行" + b);

    }

}
